﻿<UserControl
    x:Class="BasicLight.Client.Includes.Navigation"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:BasicLight.Client.Includes"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:include="using:BasicLight.Client.Includes"
    mc:Ignorable="d"
    d:DesignHeight="52"
    d:DesignWidth="1366" Height="52">
    
    <Grid>
        <Button x:Name="backButton" Click="BackClick" VerticalAlignment="Bottom" HorizontalAlignment="Left" Height="52" Width="52" Margin="34,0,0,0" IsEnabled="{Binding Frame.CanGoBack, ElementName=pageRoot}" Visibility="Collapsed">
            <Button.Template>
                <ControlTemplate>
                    <Grid Width="52" Height="52">
                        <Border CornerRadius="20,0,0,0" Background="Transparent" Width="52" Height="52" BorderThickness="1.2,1.2,0,0" BorderBrush="{StaticResource Blue-ThemeBrush}"/>
                        <Border CornerRadius="0,0,20,0" Background="Transparent" Width="52" Height="52" BorderThickness="0,0,1.2,1.2" BorderBrush="{StaticResource Blue-ThemeBrush}"/>
                        <Line Stroke="{StaticResource Blue-ThemeBrush}" StrokeThickness="1.2" X1="10" Y1="26" X2="26" Y2="10"/>
                        <Line Stroke="{StaticResource Blue-ThemeBrush}" StrokeThickness="1.2" X1="10" Y1="26" X2="26" Y2="42"/>
                        <Line Stroke="{StaticResource Blue-ThemeBrush}" StrokeThickness="1.2" X1="10" Y1="26" X2="42" Y2="26"/>
                    </Grid>
                </ControlTemplate>
            </Button.Template>
        </Button>
        
        <StackPanel Margin="120,0,0,0" Orientation="Horizontal">
            <TextBlock x:Name="title" Text=""  Style="{StaticResource PageTitleText}"/>
            <ComboBox x:Name="categoryComboBox" Margin="20,0,0,0" Style="{StaticResource CategoryComboBox}" Visibility="Collapsed">
                <ComboBox.Items>
                    <ComboBoxItem Content="分类" IsSelected="True"/>
                    <ComboBoxItem Content="地域"/>
                    <ComboBoxItem Content="内容"/>
                </ComboBox.Items>
            </ComboBox>
        </StackPanel>
        
        <include:Logo x:Name="logo" VerticalAlignment="Bottom" HorizontalAlignment="Left" Margin="120,0,0,0"/>
        
        <include:Seach VerticalAlignment="Bottom" HorizontalAlignment="Right" Margin="0,0,60,0"/>
    </Grid>
</UserControl>
